
export const departmentsList = ( list, parentId) => {
  const result = []
    list.forEach((item) => {
      if (item.pid === parentId) {
        console.log(item)
        result.push(item)
      }
    })
  return result
} 